<?php

namespace app\admin\model\ykw;

use think\Model;
use think\process\pipes\Unix;


class WxUser extends Model
{

    

    //数据库
    protected $connection = 'database';
    // 表名
    protected $name = 'wx_user';
    
    // 自动写入时间戳字段
    protected $autoWriteTimestamp = false;

    // 定义时间戳字段名
    protected $createTime = 'create_time';
    protected $updateTime = false;
    protected $deleteTime = false;

    // 追加属性

    protected $append = [
    ];
    

    







    public function subject()
    {
        return $this->belongsTo('app\admin\model\Subject', 'subject_id', 'id', [], 'LEFT')->setEagerlyType(0);
    }


    public function specialty()
    {
        return $this->belongsTo('app\admin\model\Specialty', 'specialty_id', 'id', [], 'LEFT')->setEagerlyType(0);
    }
}
